
/* Machines Gallery Styles */
.gallery-item:hover {
	transform: translateY(-5px);
}
.gallery-item:hover .img {
	transform: scale(1.1);
}
.gallery-item:hover .content-overlay {
	opacity: 1;
}
.gallery-item .video-link:hover,
.gallery-item .image-popup:hover {
	background: #0a4db8 !important;
	transform: scale(1.1);
}

/* Gallery Modal Styles */
.gallery-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.9);
	animation: fadeIn 0.3s;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.gallery-modal .modal-content {
	position: relative;
	margin: auto;
	padding: 0;
	max-width: 90%;
	max-height: 90vh;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
	background: transparent;
	box-shadow: none;
}
.gallery-modal .image-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	max-height: 80vh;
}
.gallery-modal .close-modal {
	position: absolute;
	top: -15px;
	right: -15px;
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
	background: rgba(0,0,0,0.5);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	transition: all 0.3s ease;
}
.gallery-modal .close-modal:hover {
	color: #fff;
	background: #0c59db;
	transform: scale(1.1);
}
.gallery-modal img {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	line-height: 0;
	box-sizing: border-box;
	margin: 0 auto;
	border-radius: 8px;
}
